import IDeptPageForm from '@/model/form/dept/IDeptPageForm'
import IResVO from '@/model/vo/common/IResVO'
import IDeptVO from '@/model/vo/dept/IDeptVO'
import $http from '@/util/http'
import { AxiosResponse } from 'axios'

// 查询部门（树结构）
export default function deptTreeApi(form: IDeptPageForm) {
  return $http.post<IResVO, AxiosResponse<IResVO<IDeptVO[]>>>(
    '/dept/tree',
    form
  )
}
